#ifndef COMSETTINGDLG_H
#define COMSETTINGDLG_H

#include <QDialog>
#include <QSerialPort>
#include "common/common.h"

namespace Ui {
class ComSettingDlg;
}

class ComSettingDlg : public QDialog
{
    Q_OBJECT

public:
    explicit ComSettingDlg(MySerialport* sp, QWidget *parent = 0);
    ~ComSettingDlg();
    void initCbxs();
    static int baudRateTab[];
    static int dataBitsTab[];
    static int parityTab[];
    static int stopBitsTab[];

private slots:
    void on_btn_cancel_clicked();

    void on_btn_ok_clicked();
signals:
    void quitWithText(const QString&);
private:
    MySerialport* mSp;
    Ui::ComSettingDlg *ui;

};

#endif // COMSETTINGDLG_H
